package com.oedtech.esl.model.SNModel;

import com.oedtech.esl.model.esl.EslStatus;
import com.oedtech.esl.model.esl.EslTab;

/**
 * @Author QiuLongYu
 * @Date 2019/8/6
 */
public class SNEslStatus {
    private	String	esl_id	;	//	价签ID
    private	String	vendor_id	;	//	供应商标识
    private	String	ap_id	;	//	基站ID
    private	String	battery	;	//	价签当前电量值
    private	String	rom_version	;	//	价签的ROM版本号
    private	String	firmware_id	;	//	固件id
    private	String	rf_power	;	//	价签的能量值
    private	String	reserve	;	//	保留
    private	String	last_hb_time	;	//	最后心跳时间
    private	String	set_wor	;	//	听帧周期


    public SNEslStatus(){}

    public SNEslStatus(EslTab eslTab, String vendorId,String firmwareFlag) {
        this.esl_id=eslTab.getTinyIP();
        this.vendor_id=vendorId;
        this.ap_id=eslTab.getNetworkIP();
        this.battery=eslTab.getEslStatus().getBattery();
        this.firmware_id=firmwareFlag+eslTab.getFirmwareId();
        this.rf_power=eslTab.getEslStatus().getRssiValue();
        this.last_hb_time=eslTab.getEslStatus().getLastUpdateTime().getTime()+"";
    }

    public String getEsl_id() {
        return esl_id;
    }

    public void setEsl_id(String esl_id) {
        this.esl_id = esl_id;
    }

    public String getVendor_id() {
        return vendor_id;
    }

    public void setVendor_id(String vendor_id) {
        this.vendor_id = vendor_id;
    }

    public String getAp_id() {
        return ap_id;
    }

    public void setAp_id(String ap_id) {
        this.ap_id = ap_id;
    }

    public String getBattery() {
        return battery;
    }

    public void setBattery(String battery) {
        this.battery = battery;
    }

    public String getRom_version() {
        return rom_version;
    }

    public void setRom_version(String rom_version) {
        this.rom_version = rom_version;
    }

    public String getFirmware_id() {
        return firmware_id;
    }

    public void setFirmware_id(String firmware_id) {
        this.firmware_id = firmware_id;
    }

    public String getRf_power() {
        return rf_power;
    }

    public void setRf_power(String rf_power) {
        this.rf_power = rf_power;
    }

    public String getReserve() {
        return reserve;
    }

    public void setReserve(String reserve) {
        this.reserve = reserve;
    }

    public String getLast_hb_time() {
        return last_hb_time;
    }

    public void setLast_hb_time(String last_hb_time) {
        this.last_hb_time = last_hb_time;
    }

    public String getSet_wor() {
        return set_wor;
    }

    public void setSet_wor(String set_wor) {
        this.set_wor = set_wor;
    }
}
